package com.coin900.coin.service.coin;

import com.coin900.coin.persist.coin.CoinCoinVO;
import com.value.mybatis.Pagination;

import java.util.List;
import java.util.Map;

/**
 * @author shui
 * @create 2018-1-23
 */
public interface ICoinCoinService {

    List<CoinCoinVO> loadCoinCoin(Map<String, Object> params);

    List<CoinCoinVO> loadCoinCoinForPage(Pagination pagination);

    /**
     * 获取某个币种的信息
     *
     * @param coinId 币种的 id
     * @return
     */
    CoinCoinVO getCoin(Long coinId);

    /**
     * 查询所有可以用于支付代币的币
     *
     * @param params
     * @return
     */
    List<CoinCoinVO> loadCoinCoinPayforTokenAll(Map<String, Object> params);

    void insertCoinCoin(CoinCoinVO coinCoinVO);

    void updateCoinCoin(CoinCoinVO coinCoinVO);

    void deleteCoinCoin(CoinCoinVO coinCoinVO);

}